package cn.bone.ou.data.param;

import lombok.Data;

import javax.validation.constraints.NotNull;

public class FileParam {

    @Data
    public static class ListParam{
        @NotNull
        private Integer communityId;
        @NotNull
        private Integer start;
        @NotNull
        private Integer num;
        private String name;
    }

    @Data
    public static class AddParam{
        @NotNull
        private Integer communityId;
        @NotNull
        private String name;
        @NotNull
        private Long size;
        @NotNull
        private String url;
    }

    @Data
    public static class DeleteParam{
        @NotNull
        private Integer fileId;
    }
}
